import { translateTitle } from '@/utils/i18n'
const RoleMenuButton = {
  RoleMenuButton: {
    search: {
      form: {
        method: 'roleServiceImpl.queryTable',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'ROLE_NAME',
            label: translateTitle('Dams.DamsSystemManagement.角色名字'),
            labelHidden: false,
          },

          {
            type: 'button',
            label: translateTitle('Dams.DamsSystemManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        api: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'ID',
            label: translateTitle('Dams.DamsSystemManagement.主键ID'),
            disabled_add: true,
            hidden: true,
          },

          {
            type: 'input',
            name: 'ROLE_NAME',
            label: translateTitle('Dams.DamsSystemManagement.角色名字'),
          },
        ],
      },
    },
    addMethod: 'roleServiceImpl.save',
    deleteMethod: 'roleServiceImpl.deleteById',
    updateMethod: 'roleServiceImpl.update',
    queryUser: 'dams.queryUserId.byRoleId',
    saveUserRole: 'dams.userRoleMangage.add',
  },
}
export default RoleMenuButton
